home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / CArrowButton / About cArrowButtons 1.0 next >
Encoding:
Text File  |  1999-11-07  |  941 b   |  34 lines

  1. cArrowButton 1.0
  2. A RB class (canvas) by Michael Rosander, copyright © 1999 
  3. November 7, 1999
  4. ------------------
  5. It is free to use in any RB project. However, if you use it give credit
  6. to me in the about box or documentation of the application.
  7. The algorithm for detecting if the cursor is within an arrow was translated to 
  8. RB by Doug Holton - thanks!
  9.  
  10. michael.rosander@home.se
  11. http://www.liu.se/ipp/rb/rb.html
  12.  
  13.  
  14. Properties:
  15. direction as integer
  16.    0 = right (default)
  17.    1 = left
  18.    2 = up
  19.    3 = down
  20.  
  21. oneClick as boolean
  22.    true = one "action event" for each click
  23.              (if ctrl is down when mouse is down then "action events" fires more often)
  24.    false = allow multiple "action events" if the mouse is kept down (default)
  25.  
  26. bgColor as color
  27.    The background color - default is fillColor
  28.  
  29. enabled as boolean
  30.    false = the button is dimmed and it doesn't work...
  31.  
  32. The size of the button is detemined by the size of the canvas...
  33.  
  34.